package com.wofish.member.domain;


import com.wofish.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 会积分使用记录表 wf_b2c_member_point_record
 * 
 * @author wofish
 * @date 2019-05-21
 */
public class MemberPointRecord extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	/** 记录id */
	private Long recordId;
	/** 原始记录id，当前记录由该记录拆分而来 */
	private Long origRecordId;
	/** 会员id */
	private Long memberId;
	/** 订单id，由此订单获得积分或消耗积分 */
	private Long orderId;
	/** 该记录积分值 */
	private Integer point;
	/** 记录是否有效，0-无效，1-有效 */
	private Integer flag;
	/** 添加时间 */
	private Date createTime;
	/** 过期时间 */
	private Date expireTime;
	/** 更新时间 */
	private Date updateTime;

	public void setRecordId(Long recordId) {
		this.recordId = recordId;
	}

	public Long getRecordId() {
		return recordId;
	}
	public void setOrigRecordId(Long origRecordId) {
		this.origRecordId = origRecordId;
	}

	public Long getOrigRecordId() {
		return origRecordId;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getMemberId() {
		return memberId;
	}
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Long getOrderId() {
		return orderId;
	}
	public void setPoint(Integer point) {
		this.point = point;
	}

	public Integer getPoint() {
		return point;
	}
	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getFlag() {
		return flag;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	public Date getExpireTime() {
		return expireTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("origRecordId", getOrigRecordId())
            .append("memberId", getMemberId())
            .append("orderId", getOrderId())
            .append("point", getPoint())
            .append("flag", getFlag())
            .append("createTime", getCreateTime())
            .append("expireTime", getExpireTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
